WebMail : RoundCube
2014/09/29 |
Install RoundCube to configure web-based mail transfer system like yahoo mail or hotmail.
This example uses servers below for configuration of RoundCube.
www.srv.world - RoundCube installed Web Servermail.srv.world - SMTP/IMAP Server
|
|
[1] | |
[2] | |
[3] | |
[4] | |
[5] | |
[6] | Create a Database for RoundCube. |
[root@www ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 3 Server version: 5.5.37-MariaDB MariaDB Server Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. # create "roundcube" database ( set your own password for 'password' section )
MariaDB [(none)]>
create database roundcube; Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]>
grant all privileges on roundcube.* to roundcube@'localhost' identified by 'password'; Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.00 sec) exit Bye |
[7] | Install RoundCube. |
[root@www ~]# cd /usr/share/roundcubemail/SQL [root@www SQL]# mysql -u roundcube -D roundcube -p < mysql.initial.sql Enter password: # MariaDB roundcube password [root@www SQL]#
[root@www ~]#
cp -p /etc/roundcubemail/defaults.inc.php /etc/roundcubemail/config.inc.php [root@www ~]# vi /etc/roundcubemail/config.inc.php # line 27: change like follows ( replace your password for 'password' ) $config['db_dsnw'] = 'mysql://roundcube: password @localhost/roundcube ';
# line 127: specify IMAP server (SSL) $config['default_host'] = ' ssl://mail.srv.world ';
# line 130: specify IMAP port (SSL) $config['default_port'] = 993 ;
# line 232: specify SMTP server (SSL) $config['smtp_server'] = ' ssl://mail.srv.world ';
# line 236: specify SMTP port (SSL) $config['smtp_port'] = 465 ;
# line 240: change ( use the same user for SMTP auth and IMAP auth ) $config['smtp_user'] = ' %u ';
# line 244: change ( use the same password for SMTP auth and IMAP auth ) $config['smtp_pass'] = ' %p ';
# line 248: change ( SMTP auth type ) $config['smtp_auth_type'] = ' LOGIN ';
# line 260: specify SMTP HELO host $config['smtp_helo_host'] = ' mail.srv.world ';
# line 449: specify your domain name $config['mail_domain'] = ' srv.world ';
# line 467: change title $config['product_name'] = ' Server World Webmail ';
# line 470: change UserAgent $config['useragent'] = ' Server World Webmail ';
# line 602: change to your lang $config['language'] = ja_JP ;
# line 953: change default char-set to your lang $config['default_charset'] = ' iso-2022-jp ';
[root@www ~]#
vi /etc/httpd/conf.d/roundcubemail.conf # line 14: IP address you permit to access Require ip 10.0.0.0/24
systemctl restart httpd |
[8] | If SELinux is enabled, change rules like follows. |
[root@www ~]# setsebool -P httpd_can_network_connect on |
[9] | Access to 'https://(your server's hostname or IP address/)/roundcubemail/', then follwing screen is shown, authenticate with a user and his password to login. |
[10] | Just logined. |